#include "xlog_format.h"
#include <sstream>
#include "log_util.h"
using namespace std;



std::string XLogFormat::Format(
	const std::string& level,
	const std::string& log,
	const std::string& file,
	int line
) {
	LogUtil logutil;
	stringstream ss;
	ss << logutil.GetNow()
        << " " << level 
        << " " << log 
        << " " << file 
        << ":" << line;
	return ss.str();
}


